package com.example.springboot_project.service.impl;

import com.example.springboot_project.entity.Majors;
import com.example.springboot_project.mapper.MajorsMapper;
import com.example.springboot_project.service.MajorsService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorsServiceImpl implements MajorsService {
    //注入持久层
    private MajorsMapper majorsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return majorsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Majors record) {
        return majorsMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(Majors record) {
        return majorsMapper.updateByPrimaryKey(record);
    }

//    @Override
//    public List<Majors> findAll() {
//        return majorsMapper.findAll();
//    }
}
